package com.bdmc.task.mapper;

import com.bdmc.common.annotation.DataColumn;
import com.bdmc.common.annotation.DataPermission;
import com.bdmc.task.domain.TaskWorkTeam;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bdmc.task.domain.bo.TaskWorkTeamBo;
import com.bdmc.task.domain.vo.TaskWorkTeamVo;
import com.bdmc.common.core.mybatisplus.core.BaseMapperPlus;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 作业班组Mapper接口
 *
 * @author bdmc
 * @date 2022-03-06
 */
public interface TaskWorkTeamMapper extends BaseMapperPlus<TaskWorkTeam> {

    @DataPermission({@DataColumn(value = "d.dept_id")})
    Page<TaskWorkTeamVo> mySelectPage(@Param("page") Page<TaskWorkTeam> page, @Param("param") TaskWorkTeamBo bo);

    @DataPermission({@DataColumn(value = "d.dept_id")})
    List<TaskWorkTeamVo> mySelectPage(@Param("param") TaskWorkTeamBo bo);
}
